package com.yuanqi.java.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanqi.java.entity.PurchaseReturnOrderItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 采购退货单商品Mapper
 */
@Mapper
public interface PurchaseReturnOrderItemMapper extends BaseMapper<PurchaseReturnOrderItem> {

    /**
     * 根据退货单ID查询商品列表
     */
    List<PurchaseReturnOrderItem> selectByReturnOrderId(@Param("returnOrderId") Long returnOrderId);

    /**
     * 根据退货单ID删除商品
     */
    int deleteByReturnOrderId(@Param("returnOrderId") Long returnOrderId);
} 